package com.ucar.train.dao;

import com.ucar.train.dto.OrderDTO;
import com.ucar.train.dto.OrderDetailDTO;

import java.util.List;


public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderDTO record);

    int insertSelective(OrderDTO record);

    OrderDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDTO record);

    int updateByPrimaryKey(OrderDTO record);

    List<OrderDTO> selectByCustomerID(Long crmID);

    List<OrderDTO> selectAll();

    OrderDTO selectByOrderNo(String orderNo);

    int insertSelectiveMore(List<OrderDetailDTO> orderDetailDTOS);

    String selectLastOrderNo();

    /**
     * @Author zhoujinmu
     * @Description 获取关注用户订单的店铺信息及评价
     * @Date 2019/8/27 15:15
     */
    List<OrderDTO> getCommentByCustomerID(Long crmID);


}